[.config_load file="../../config/emmm.conf".]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>[.$emmm_adminfont.admintitle.]</title>
<link href="templates/images/emmm_login.css" rel="stylesheet" type="text/css"> 
[.#jq172#.]
<script>
<!--
/*第一种形式 第二种形式 更换显示样式*/
function setTab(m,n){
 var tli=document.getElementById("menu"+m).getElementsByTagName("li");
 var mli=document.getElementById("main"+m).getElementsByTagName("ul");
 for(i=0;i<tli.length;i++){
  tli[i].className=i==n?"hover":"";
  mli[i].style.display=i==n?"block":"none";
 }
}
//-->
</script>

</head>

<body>
<div style="height:50px;"></div>
<div style="clear:both"></div>
<div id="tabs0">
 <ul class="menu0" id="menu0">
  <li onclick="setTab(0,0)" class="hover">积分领取管理</li>
 </ul>
 <div class="main" id="main0" style="border-top:2px #488fcd solid; clear:both;">
  <ul class="block">
	  <li>
		<div class="emmm_newslist">
				
				[.if $smarty.get.opcms == 'emmm'.]
		        <table width="100%" border="0" cellpadding="10" class="emmm_newslist">
                  <tr>
				 	<td width="5%" bgcolor="#EBEBEB"><div align="center">批量?</div></td>
				  	<td width="3%" bgcolor="#EBEBEB"><div align="center">ID</div></td>
                    <td width="20%" bgcolor="#EBEBEB">积分名称</td>
					<td width="10%" bgcolor="#EBEBEB">可领积分</td>
					<td width="15%" bgcolor="#EBEBEB">领取账号</td>
					<td width="10%" bgcolor="#EBEBEB">领取状态</td>
					<td width="14%" bgcolor="#EBEBEB">领取时间</td>
                    <td width="14%" bgcolor="#EBEBEB">产生时间</td>
                    <td width="9%" bgcolor="#EBEBEB">操作</td>
                  </tr>
				  [.section loop=$integral name=op.]
                  <tr>
				 	 <td><div align="center"><input type="checkbox" name="op_b[]" value="[.$integral[op].id.]" />
				 	 </div></td>
				  	<td><div align="center"><font style="background:#009933; color:#FFFFFF; padding:2px; text-align:center;">[.$integral[op].id.]</font></div></td>
                    <td>[.$integral[op].title.]</td>
					<td>[.$integral[op].integral.]</td>
					<td>[.$integral[op].useremail.]</td>
					<td>[.if $integral[op].confirm == 0.]未领取[.else.]已领取[./if.]</td>
					<td>[.$integral[op].lqtime.]</td>
                    <td>[.$integral[op].time.]</td>
                    <td><a href="?opcms=edit&id=[.$integral[op].id.]&page=[.$page.]">编辑</a>&nbsp;&nbsp;-&nbsp;&nbsp;<a href="?emmm_cms=del&id=[.$integral[op].id.]" onclick="javascript:return confirm('确认删除吗?')">删除</a></td>
                  </tr>
				  [.sectionelse.]
				  <tr>
                    <td colspan="9">[.$emmm_access.]</td>
                  </tr>
				  [./section.]
                  <tr>
                    <td colspan="9">[.$emmmpage.]</td>
                  </tr>
                </table>
				[.elseif $smarty.get.opcms == 'edit'.]
		        <form id="form1" name="form1" method="post" action="?emmm_cms=edit&id=[.$smarty.get.id.]&page=[.$smarty.get.page.]" class="registerform">
						<table width="98%" border="0" cellpadding="5" cellspacing="0" bordercolor="#666666" style="border-collapse:collapse; margin-top:20px;" align="center">
						  <tr>
							<td><div align="right">积分名称</div></td>
							<td><input name="title" type="text" class="win" value="[.$emmm_integral.COL_Iname.]" [.$emmm_bgcolor.] datatype="*" nullmsg="*是必填项!"/><font color=red> (*)</font></td>
						  </tr>
						  <tr>
							<td><div align="right">可领积分</div></td>
							<td><input name="integral" type="text" class="win" value="[.$emmm_integral.COL_Iintegral.]" [.$emmm_bgcolor.] atatype="*" nullmsg="*是必填项!"/><font color=red> (*)</font></td>
						  </tr>
						  <tr>
							<td><div align="right">积分状态</div></td>
							<td><input name="confirm" type="radio" value="1" [.if $emmm_integral.COL_Iconfirm == 1.]checked="checked"[./if.] />
							  已领取
						        <input type="radio" name="confirm" value="0" [.if $emmm_integral.COL_Iconfirm == 1.]checked="checked"[./if.] />
					        未领取</td>
						  </tr>
						   <tr>
							<td></td>
							<td><input type="submit" name="submit" value="提 交" class="emmm-anniu"/></td>
						  </tr>
						</table>
                </form>
				[./if.]
        </div>
	  </li>
  </ul>
 </div>
</div>
[.include file="emmm_foot.html".]
</body>
</html>
